{include file="header.tpl"}

   <h1>Registry</h1>

   {include file="admin_sidebar.tpl"}

   <div id="content">
   
      {include file="flashes.tpl"}
      
      <div class="action_bar">
         <a class="add" href="{$spf.base_url}/registry/edit/">Add Entry</a>
      </div>

      <table rules="all" frame="box">
         <thead>
            <tr>
               <th>Name</th>
               <th>Value</th>
               <th class="center">Edit</th>
               <th class="center">Delete</th>
            </tr>
         </thead>
         <tbody>
            {foreach key=var_name item=var_value from=$data}
            <tr class="{cycle values=",alt"}">
               <td>{$var_name}</td>
               <td>{$var_value}</td>
               <td class="edit"><a href="{$spf.base_url}/registry/edit/{$var_name}" title="Edit '{$var_name}'"></a></td>
               <td class="delete"><a href="#" onclick="spf.sitrack.confirm('/registry/delete/{$var_name}')"></a></td>
            </tr>
            {/foreach}
            {if !$data}<tr><td class="norecords" colspan="4">No records found.</td></tr>{/if}
         </tbody>
      </table>

      <div class="clear"></div>
      
   </div>

{include file="footer.tpl"}
